			<script type="text/javascript">
				function frmSubmits(url, mode) {
					document.formNumber.action = url;
					document.formNumber['mode'].value = mode;
					document.formNumber.submit();
				}
			</script>
			<div class="centCont">
            	<div class="boxCent">
                	<div class="tt-boxCent">
                    	<p>Thanh toán</p>
                        <div class="che-tt-cent"></div>
                    </div><!--tt-boxCent-->
                    <div class="cc-boxCent">
                    	<form name="formNumber" id="formNumber" action="" method="post">
                    	<input type="hidden" name="mode" value="" />
                    	<input type="hidden" name="thanhtoan" value="<?php echo $this->getPost['thanhtoan'];?>" />
                    	<div class="thanhtoantiep">
                        	<ul>
                            	<li class="title"><p>Thông tin khách hàng</p></li>
                                <li class="chitiet">
                                	<ul>
                                    	<li class="left"><p>Họ và tên :</p></li>
                                        <li class="right"><span><?php echo $this->dataUser['hoten'];?></span></li>
                                    </ul>
                                </li>
                                <li class="chitiet">
                                	<ul>
                                    	<li class="left"><p>Địa chỉ :</p></li>
                                        <li class="right"><span><?php echo $this->dataUser['diachi'];?></span></li>
                                    </ul>
                                </li>
                                <li class="chitiet">
                                	<ul>
                                    	<li class="left"><p>Tỉnh/Thành phố :</p></li>
                                        <li class="right"><span><?php echo constants::$arrayCountry[$this->dataUser['tinh']];?></span></li>
                                    </ul>
                                </li>
                                <li class="chitiet">
                                	<ul>
                                    	<li class="left"><p>Quốc gia :</p></li>
                                        <li class="right"><span>Việt Nam</span></li>
                                    </ul>
                                </li>
                                <li class="chitiet">
                                	<ul>
                                    	<li class="left"><p>Điện thoại :</p></li>
                                        <li class="right"><span><?php echo ($this->dataUser['phone']!='') ? $this->dataUser['phone'] : $this->dataUser['phone2'];?></span></li>
                                    </ul>
                                </li>
                                <li class="chitiet">
                                	<ul>
                                    	<li class="left"><p>E-mail :</p></li>
                                        <li class="right"><span><?php echo $this->dataUser['email'];?></span></li>
                                    </ul>
                                </li>
                                <li class="title"><p>PHƯƠNG THỨC THANH TOÁN</p></li>
                                <li class="chitiet">
                                	<ul>
                                    	<li class="left"><p>Thanh toán qua cổng:</p></li>
                                        <li class="right"><span><?php echo constants::$typeThanhToan[$this->getPost['thanhtoan']];?></span></li>
                                    </ul>
                                </li>
                                <li class="title"><p>THÔNG TIN HÓA ĐƠN</p></li>
                                <li class="thongtinmathang">
                                	<table width="100%" cellpadding="5" cellspacing="0" border="0" style="font-size:13px;">
                                		<tr>
                                			<th class="border-right">Tên sản phẩm</th>
                                			<th width="90" class="border-right">Số lượng</th>
                                			<th width="124" class="border-right">Đơn giá</th>
                                			<th width="127">Thành tiền</th>
                                		</tr>
                                		<?php $tongTien=0; if(count($this->spGioHang) > 0) :?>
                                        <?php foreach ($this->spGioHang as $giohang) :?>
                                        <tr>
                                			<td class="border-top border-right"><?php echo $giohang['nameD'].(($giohang['nameC'] != '') ? ' | '.$giohang['nameC'] : '')." | ".$giohang['nameS'];?></td>
                                			<td class="border-top border-right" align="center"><?php echo $giohang['soluong'];?></td>
                                			<td class="border-top border-right" align="center"><?php echo number_format($giohang['dongia']);?>.000 VNĐ</td>
                                			<td class="border-top" align="center"><?php echo number_format($giohang['tongtien']);?>.000 VNĐ</td>
                                		</tr>
                                        <?php $tongTien += $giohang['tongtien']; endforeach;?>
                                        <?php endif;?>
                                        <tr>
                                        	<th align="right" class="border-top" colspan="3">Chi phí đơn hàng:</th>
                                        	<td align="right" class="border-top"><?php echo number_format($tongTien);?>.000 VNĐ</td>
                                        </tr>
                                        <tr>
                                        	<th align="right" colspan="3">Phí dịch vụ:</th>
                                        	<td align="right"><?php echo number_format($this->phiDV); ?> VNĐ</td>
                                        </tr>
                                        <tr>
                                        	<th class="border-bottom" align="right" colspan="3">Thành tiền:</th>
                                        	<td class="border-bottom" align="right"><?php echo $totalThanhToan = number_format(($tongTien*1000) + $this->phiDV);?> VNĐ</td>
                                        </tr>
                                	</table>
                                </li>
                                <li class="tonggiatridonhang">
                                	<p>Tổng giá trị đơn hàng số 1:</p>
                                    <span><?php echo $totalThanhToan;?> VNĐ</span>
                                    <input type="hidden" name="totalThanhToan" value="<?php echo $totalThanhToan;?>">
                                </li>
                                <?php if (!$this->thanhtoan) :?>
                                <li class="thanhtoan"><a href="javascript:void(0)" onclick="frmSubmits('<?php echo WEB_LINK . "/";?>product/thanh-toan', 'thanhtoan')">Thanh toán</a></li>
                                <?php endif;?>
                            </ul>
                            <table width="100%" cellpadding="5" cellspacing="0" border="0" style="margin-top:15px;font-size:13px;">
	                            <tr>
	                            	<th colspan="4" align="left">Tình trạng : Chưa thanh toán</th>
	                            </tr>
                          </table>
                        </div><!--thanhtoantiep-->
                        </form>
                    </div><!--cc-boxCent-->
                </div><!--boxCent-->
                <div class="qc-cent"><img src="<?php echo WEB_LINK . "/";?>images/qc-cent-1.jpg" /></div><!--qc-cent-->
            </div><!--centCont-->